package com.itheima.dao;



import com.github.pagehelper.Page;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SetMealDao {


    void add(Setmeal setmeal);

    void setCheckGroupAndCheckItem(Map<String, Integer> map);


    Page<Setmeal> findByCondition(String queryString);

    List<Setmeal> getAllSetMeal();

    Setmeal findById(int id);

    List<Integer> findCheckGroupIdsBySetMealId(int id);

    void delAssociation(int id);

    void delete(int id);

    List<Map<String,Object>> findSetmealCount();

    Map<String, Object> getSetMealIncome(@Param("beginDate")String beginDate,@Param("endDate") String endDate,@Param("setMealName") String setMealName);


    List<String> getAllSetMealNames();
}
